// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import store from './store';
import axios from 'axios';
import FastClick from 'fastclick';
import VueAxios from 'vue-axios';

Vue.config.productionTip = true;
Vue.config.debug = true;

// axios 基于 promise 的 http 请求客户端
Vue.use(VueAxios, axios);

// 解决移动端 click 事件 300ms 延迟
FastClick.attach(document.body);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
});
